import Vue from 'vue'
// js使用主题色
Vue.prototype.themeColor = '#C30D23'
Vue.prototype.textColor = '#333333'
Vue.prototype.greyColor = '#999999'
Vue.prototype.bgColor = '#F8F8F8'
// 渐变色主题
Vue.prototype.linearGradient = 'linear-gradient(-90deg, #C30D23, #FC0C29)'
// 返回按钮样式
Vue.prototype.getBtStyle = (type = 'default', width, height, fontSize) => {
	let obj = {}
	if (type == 'default') {
		obj = {
			background: Vue.prototype.linearGradient,
			color: '#FFFFFF',
			width: width + 'rpx',
			height: height + 'rpx',
			fontSize: fontSize + 'rpx',
			border: 0
		}
	} else {
		obj = {
			color: Vue.prototype.themeColor,
			border: '1px solid',
		}
	}
	return obj
}